package cn.exrick.xboot.core.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum UserTypeEnum {

    /**
     * 监管部门
     */
    SUPERVISION_DEPARTMENT(1,"监管部门"),

    /**
     * 政府部门
     */
    GOVERNMENT_DEPARTMENT(2, "政府部门"),

    /**
     * 安全顾问
     */
    SECURITY_ADVISOR(3, "安全顾问"),

    /**
     * 企业用户
     */
    ENTERPRISE_USER(4,"企业用户");

    UserTypeEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    @EnumValue
    private final  int code;
    private  String value;


}
